package com.chixing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author shy
 * @since 2022-10-20
 */
@TableName("comments")
public class Comments implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer commentsId;


    private String commentsContent;

    private Integer commentsStatus;


    private Float version;


    private LocalDateTime createtime;

    private LocalDateTime updatetime;

    public Integer getCommentsId() {
        return commentsId;
    }

    public void setCommentsId(Integer commentsId) {
        this.commentsId = commentsId;
    }
    public String getCommentsContent() {
        return commentsContent;
    }

    public void setCommentsContent(String commentsContent) {
        this.commentsContent = commentsContent;
    }
    public Integer getCommentsStatus() {
        return commentsStatus;
    }

    public void setCommentsStatus(Integer commentsStatus) {
        this.commentsStatus = commentsStatus;
    }
    public Float getVersion() {
        return version;
    }

    public void setVersion(Float version) {
        this.version = version;
    }
    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }
    public LocalDateTime getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(LocalDateTime updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public String toString() {
        return "Comments{" +
            "commentsId=" + commentsId +
            ", commentsContent=" + commentsContent +
            ", commentsStatus=" + commentsStatus +
            ", version=" + version +
            ", createtime=" + createtime +
            ", updatetime=" + updatetime +
        "}";
    }
}
